#include "stdafx.h"
#include <yaml.h>
#include "Configuration.h"

using namespace std;
using namespace YAML;

Configuration::Configuration(istream &inputFileStream) {
	Parser parser(inputFileStream);
	Node yamlDoc;

	if(const Node* pythonPathNode = yamlDoc.FindValue("PythonPath")) {
		*pythonPathNode >> pythonPath;
	}
}

const string& Configuration::PythonPath() const {
	return pythonPath;
}